@section('custom_script')
    <script type="text/javascript">
        jQuery(document).ready(function(){
           jQuery('#buttonOCT').click(function  (){
               //set custom message content
               jQuery.ajaxSetup ({cache: false});
                var nisn = jQuery('input[name=nisn]').attr('value');
                var loadUrl = "{{ URL::to('rekap/iurantahunan/ajxhistotranssiswa') }}" + "/" + nisn;
                //tampilkan tabel rekapitulasi ke dalam modal message
                jQuery('#modal-custom-message').load(loadUrl);
                                
               showMessage('Info Pembayaran Siswa','Tabel histori pembayaran siswa :');
               return false;
           })
        });
    </script>
@endsection

<div>
        <ul class="breadcrumb">
                <li>
                        <a href="#">Home</a>
                </li>
        </ul>
</div>

<div class="row-fluid sortable">
        <div class="box span12">
                <div class="box-header well" data-original-title>
                        <h2><i class="icon-home"></i> Home</h2>
                        <div class="box-icon">
                                <!--<a href="#" class="btn btn-setting "><i class="icon icon-darkgray icon-help"></i></a>-->
                        </div>
                </div>
                <div class="box-content">
                    <div class="row-fluid">
                        <div class="span8">
                            <legend>Selamat datang di SIMAS-ad SDI Sabilil Huda</legend>
                        </div>
                        <div class="span4">
                            <div class="pull-right" >
                                {{Form::open()}}
                                <div class="input-append pull-left" style="margin-right: 5px;">
                                    Cek pembayaran siswa : <?php echo Laravel\Form::text('nisn', null, array('class'=>'input-small','autocomplete'=>'off','autofocus','placeholder'=>'Nomor Induk')); ?><button class="btn btn-primary" id="buttonOCT"><i class="icon-white icon-search"></i></button>
                                </div>
                                {{Form::close()}}
                            </div>
                        </div>
                    </div>

                    <div class="row-fluid" >
                        @if($user)
                            <ul class="widgeticons">
                                @if($user->can('manage_transaksi_penerimaan_iuran'))
                                    <li class="one_fifth"><a href="{{ URL::to('transaksi/bayariuran') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/transactions.png" alt="" class=""><span>Iuran Siswa</span></a></li>
                                @endif
                                @if($user->can('manage_transaksi_penerimaan'))
                                    <li class="one_fifth"><a href="{{ URL::to('transaksi/penerimaan') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/cheque.png" alt=""><span>Penerimaan</span></a></li> 
                                @endif
                                @if($user->can('manage_transaksi_pengeluaran'))
                                    <li class="one_fifth"><a href="{{ URL::to('transaksi/pengeluaran') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/box_out.png" alt=""><span>Pengeluaran</span></a></li> 
                                @endif
                                @if($user->can('manage_rekapitulasi_transaksi'))
                                    <li class="one_fifth"><a href="{{ URL::to('rekap/transaksi') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/tables.png" alt=""><span>Rek. Transaksi</span></a></li> 
                                @endif
                                @if($user->can('manage_rekapitulasi_iuran'))
                                    <li class="one_fifth"><a href="{{ URL::to('rekap/iurantahunan') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/report.png" alt=""><span>Rekap Iuran</span></a></li> 
                                @endif
                                @if($user->can('manage_user'))
                                    <li class="one_fifth"><a href="{{ URL::to('setting/user') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/user.png" alt=""><span>User</span></a></li> 
                                @endif
                                @if($user->can('manage_system_setting'))
                                    <li class="one_fifth"><a href="{{ URL::to('setting/sysconf') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/Setting.png" alt=""><span>System Config</span></a></li> 
                                @endif
                                @if(strtolower($user->username) == 'eries')
                                    <li class="one_fifth"><a href="{{ URL::to('setting/adconf') }}"><img style="width: 64px;height: 64px;" src="img/gemicon/iEngrenages.png" alt=""><span>Admin Config</span></a></li> 
                                @endif
                            </ul>
                        @endif
                    </div>
                </div>
        </div><!--/span-->
</div><!--/row-->